# Find installed UEye API files

# find include path
find_path(UEye_INCLUDE_DIR
   NAMES ueye.h uEye.h
   DOC "UEye API include path"
)

# find static library
find_library(UEye_LIBRARY
   NAMES ueye_api
   DOC "UEye API static library path"
)

set(UEye_INCLUDE_DIRS ${UEye_INCLUDE_DIR})
set(UEye_LIBRARIES ${UEye_LIBRARY})
set(UEye_DEFINITIONS "-D__LINUX__")

if (UEye_INCLUDE_DIR AND UEye_LIBRARY)
   set(UEye_FOUND TRUE)
   if (NOT UEye_FIND_QUIETLY)
      message (STATUS "Found UEye: ${UEye_LIBRARY}")
   endif()
else()
   set(UEye_FOUND FALSE)
   if (UEye_FIND_REQUIRED)
      message(FATAL_ERROR "Could not find UEye")
   endif()
endif()
